home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Arsenal / OS2 Arsenal v1.0 (Disc 2)(Arsenal Computer).ISO / os2_inet / progcsd.exe / IOCTL.H < prev    next >
Text File  |  1992-11-13  |  4KB  |  108 lines

  1. /********************************************************copyrite.xic***/
  2. /*                                                                     */
  3. /*   Licensed Materials - Property of IBM                              */
  4. /*                                                                     */
  5. /*   This product contains "Restricted Materials of IBM":              */
  6. /*      Program Number:   5798RXW                                      */
  7. /*      Program Name:     IBM TCP/IP Version 1.2 for OS/2              */
  8. /*   (C) Copyright IBM Corporation. 1990, 1991.                        */
  9. /*                                                                     */
  10. /*   All rights reserved.                                              */
  11. /*                                                                     */
  12. /*   US Government Users Restricted Rights -                           */
  13. /*   Use, duplication or disclosure restricted by GSA ADP Schedule     */
  14. /*   Contract with IBM Corp.                                           */
  15. /*                                                                     */
  16. /*   See IBM Copyright Instructions.                                   */
  17. /*                                                                     */
  18. /********************************************************copyrite.xic***/
  19. #ifndef KERNEL
  20. #ifdef __32BIT__
  21. short _Far16 _Cdecl ioctl(short,short,char * _Seg16,short);
  22. #else
  23. ioctl(int , int, char far *, int);
  24. #endif
  25. #endif
  26. #define ioc(x,y)       ((x<<8)|y)
  27.  
  28. #define FIONREAD        ioc('f', 127)
  29. #define FIONBIO         ioc('f', 126)
  30. #define FIOASYNC        ioc('f', 125)
  31. #define FIOTCPCKSUM     ioc('f', 128)
  32. #define FIONSTATUS      ioc('f', 120)
  33. #define FIONURG         ioc('f', 121)
  34.  
  35. #define SIOCSHIWAT      ioc('s',  0)
  36. #define SIOCGHIWAT      ioc('s',  1)
  37. #define SIOCSLOWAT      ioc('s',  2)
  38. #define SIOCGLOWAT      ioc('s',  3)
  39. #define SIOCATMARK      ioc('s',  7)
  40. #define SIOCSPGRP       ioc('s',  8)
  41. #define SIOCGPGRP       ioc('s',  9)
  42.  
  43. #define SIOCADDRT       ioc('r', 10)
  44. #define SIOCDELRT       ioc('r', 11)
  45. #define SIOMETRIC1RT    ioc('r', 12)
  46. #define SIOMETRIC2RT    ioc('r', 13)
  47. #define SIOMETRIC3RT    ioc('r', 14)
  48. #define SIOMETRIC4RT    ioc('r', 15)
  49.  
  50. #define SIOCREGADDNET   ioc('r', 12)
  51. #define SIOCREGDELNET   ioc('r', 13)
  52. #define SIOCREGROUTES   ioc('r', 14)
  53. #define SIOCFLUSHROUTES ioc('r', 15)
  54.  
  55. #define SIOCSIFADDR     ioc('i', 12)
  56. #define SIOCGIFADDR     ioc('i',13)
  57. #define SIOCSIFDSTADDR  ioc('i', 14)
  58. #define SIOCGIFDSTADDR  ioc('i',15)
  59. #define SIOCSIFFLAGS    ioc('i', 16)
  60. #define SIOCGIFFLAGS    ioc('i',17)
  61. #define SIOCGIFBRDADDR  ioc('i',18)
  62. #define SIOCSIFBRDADDR  ioc('i',19)
  63. #define SIOCGIFCONF     ioc('i',20)
  64. #define SIOCGIFNETMASK  ioc('i',21)
  65. #define SIOCSIFNETMASK  ioc('i',22)
  66. #define SIOCGIFMETRIC   ioc('i',23)
  67. #define SIOCSIFMETRIC   ioc('i',24)
  68. #define SIOCSIFSETSIG   ioc('i', 25)
  69. #define SIOCSIFCLRSIG   ioc('i', 26)
  70. #define SIOCSIFBRD      ioc('i', 27)
  71.  
  72. #define SIOCGIFLOAD     ioc('i', 27)
  73. #define SIOCSIFFILTERSRC ioc('i', 28)
  74. #define SIOCGIFFILTERSRC ioc('i',29)
  75.  
  76. #define SIOCSARP        ioc('i', 30)
  77. #define SIOCGARP        ioc('i', 31)
  78. #define SIOCDARP        ioc('i', 32)
  79. #define SIOCSIFSNMPSIG  ioc('i', 33)
  80. #define SIOCSIFSNMPCLR  ioc('i', 34)
  81. #define SIOCSIFSNMPCRC  ioc('i', 35)
  82. #define SIOCSIFPRIORITY ioc('i', 36)
  83. #define SIOCGIFPRIORITY ioc('i', 37)
  84. #define SIOCSIFFILTERDST ioc('i', 38)
  85. #define SIOCGIFFILTERDST ioc('i',39)
  86. #define SIOCSIF802_3     ioc('i',40)
  87. #define SIOCSIFNO802_3     ioc('i',41)
  88. #define SIOCSIFNOREDIR   ioc('i',42)
  89. #define SIOCSIFYESREDIR   ioc('i',43)
  90.  
  91. #define SIOCSIFMTU      ioc('i',45)
  92. #define SIOCSIFFDDI     ioc('i',46)
  93. #define SIOCSIFNOFDDI   ioc('i',47)
  94. #define SIOCSRDBRD      ioc('i',48)
  95.  
  96. /* NETSTAT stuff */
  97. #define SIOSTATMBUF     ioc('n',40)
  98. #define SIOSTATTCP      ioc('n',41)
  99. #define SIOSTATUDP      ioc('n',42)
  100. #define SIOSTATIP       ioc('n',43)
  101. #define SIOSTATSO       ioc('n',44)
  102. #define SIOSTATRT       ioc('n',45)
  103. #define SIOFLUSHRT      ioc('n',46)
  104. #define SIOSTATICMP     ioc('n',47)
  105. #define SIOSTATIF       ioc('n',48)
  106. #define SIOSTATAT       ioc('n',49)
  107. #define SIOSTATARP      ioc('n',50)
  108.